#ifndef __LIB_KERNAL_BITMAP
#define __LIB_KERNAL_BITMAP
#include "stdint.h"
#define BITMAP_MASK 1
typedef struct{
	uint32_t bmap_bytes_len;
	uint8_t* bits;	
}bitmap;

void bitmap_init(bitmap* bmap);
uint8_t bitmap_test(bitmap* bmap,uint32_t bit_idx);
int bitmap_scan(bitmap* bmp,uint32_t cnt);
void bitmap_set(bitmap* bmp,uint32_t bit_idx,int8_t v);
#endif
